home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / sed-2_00.lha / sed-2.00 / Makefile.in < prev    next >
Makefile  |  1993-07-15  |  3KB  |  112 lines

  1. # Makefile for GNU SED, a batch editor.
  2. # Copyright (C) 1987, 1991 Free Software Foundation, Inc.
  3. # This file is part of GNU SED.
  4. # GNU SED is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. # GNU SED is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU SED; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. SHELL = /bin/sh
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. CC = @CC@
  24. INSTALL = @INSTALL@
  25. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  26.  
  27. # Things you might add to DEFS:
  28. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  29. # -DUSG            If you have System V/ANSI C string
  30. #            and memory functions and headers.
  31. # -D__CHAR_UNSIGNED__    If type `char' is unsigned.
  32. #            gcc defines this automatically.
  33. # -DNO_VFPRINTF        If you lack vprintf function (but have _doprnt).
  34.  
  35. DEFS = @DEFS@
  36. LIBS = @LIBS@
  37.  
  38. CFLAGS = -g 
  39. LDFLAGS = -g
  40. extra_objs =@ALLOCA@
  41.  
  42. prefix = /usr/local
  43. exec_prefix = $(prefix)
  44.  
  45. # Prefix for each installed program, normally empty or `g'.
  46. binprefix = 
  47.  
  48. # Where to install the executable.
  49. bindir = $(exec_prefix)/bin
  50.  
  51. #### End of system configuration section. ####
  52.  
  53. objs = sed.o utils.o rx.o getopt.o getopt1.o
  54. srcs = sed.c utils.c rx.c getopt.c getopt1.c alloca.c
  55.  
  56. distfiles = COPYING COPYING.LIB ChangeLog README ABOUT.RX INSTALL Makefile.in \
  57.  configure configure.in rx.h getopt.h $(srcs)
  58.  
  59. all_objs= $(objs) $(extra_objs)
  60. all:    sed
  61.  
  62. .c.o:
  63.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
  64.  
  65. sed:    $(all_objs)
  66.     $(CC) -o $@ $(LDFLAGS) $(all_objs) $(LIBS)
  67.  
  68. sed.o rx.o: rx.h 
  69. sed.o getopt1.o: getopt.h
  70.  
  71. install:    all
  72.     $(INSTALL_PROGRAM) sed $(bindir)/$(binprefix)sed
  73.  
  74. TAGS:    $(srcs)
  75.     etags $(srcs)
  76.  
  77. clean:
  78.     rm -f sed *.o core
  79.  
  80. mostlyclean: clean
  81.  
  82. distclean: clean
  83.     rm -f Makefile config.status
  84.  
  85. realclean: distclean
  86.     rm -f TAGS
  87.  
  88. dist:    $(distfiles)
  89.     echo sed-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q sed.c` > .fname
  90.     rm -rf `cat .fname`
  91.     mkdir `cat .fname`
  92.     ln $(distfiles) `cat .fname`
  93.     tar chZf `cat .fname`.tar.Z `cat .fname`
  94.     rm -rf `cat .fname` .fname
  95.  
  96. dist.afs: $(distfiles)
  97.     echo sed-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q sed.c` > .fname
  98.     rm -rf `cat .fname`
  99.     mkdir `cat .fname`
  100.     cd `cat .fname`; \
  101.     for file in $(distfiles); do ln -s ../"$$file" .; done; \
  102.     cd ..
  103.     tar chf `cat .fname`.tar `cat .fname`
  104.     gzip `cat .fname`.tar
  105.     rm -rf `cat .fname` .fname
  106.  
  107. alloca.o : alloca.c 
  108.